package com.tz.system.user.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.tz.system.menu.model.TSysMenu;
import com.tz.system.role.model.TMgtRole;

/**
 * UserInfo：存放于session中的当前登陆用户的信息
 * @version 3.0
 */
@SuppressWarnings("serial")
public class UserInfo implements Serializable {

	private String userId;    // 用户Id
	private String userName;  // 用户姓名
	private String loginIp;   // 登录ip
	private String bindedIp;  
	private String userStatus;
	private String userPhone;
	private String userEmail;
	private String userPassword;  //用户密码
	private String lastLoginTime; // 上次登录系统时间
	private String loginTime;     // 本次登录系统时间
	
	private List<TMgtRole> roles = new ArrayList<TMgtRole>();
	private List<TSysMenu> menus = new ArrayList<TSysMenu>();
	
	
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getLoginIp() {
		return loginIp;
	}
	public void setLoginIp(String loginIp) {
		this.loginIp = loginIp;
	}
	
	public List<TMgtRole> getRoles() {
		return roles;
	}

	public void setRoles(List<TMgtRole> roles) {
		this.roles = roles;
	}

	public List<TSysMenu> getMenus() {
		return menus;
	}

	public void setMenus(List<TSysMenu> menus) {
		this.menus = menus;
	}
	public String getBindedIp() {
		return bindedIp;
	}
	public void setBindedIp(String bindedIp) {
		this.bindedIp = bindedIp;
	}
	public String getUserStatus() {
		return userStatus;
	}
	public void setUserStatus(String userStatus) {
		this.userStatus = userStatus;
	}
	public String getUserPhone() {
		return userPhone;
	}
	public void setUserPhone(String userPhone) {
		this.userPhone = userPhone;
	}
	public String getUserEmail() {
		return userEmail;
	}
	public void setUserEmail(String userEmail) {
		this.userEmail = userEmail;
	}
	public String getUserPassword() {
		return userPassword;
	}

	public void setUserPassword(String userPassword) {
		this.userPassword = userPassword;
	}

	public void setLastLoginTime(String lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}

	public String getLastLoginTime() {
		return lastLoginTime;
	}

	public void setLoginTime(String loginTime) {
		this.loginTime = loginTime;
	}

	public String getLoginTime() {
		return loginTime;
	}
}